# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=rubberband
pkgver=2.0.2
pkgrel=0
pkgdesc="library for audio time-stretching and pitch-shifting"
url="https://www.breakfastquay.com/rubberband/"
arch="all"
license="GPL-2.0-only"
makedepends="fftw-dev
	ladspa-dev
	libsamplerate-dev
	libsndfile-dev
	lv2-dev
	meson
	vamp-sdk-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://breakfastquay.com/files/releases/rubberband-$pkgver.tar.bz2"
options="!check" # No tests

build() {
	abuild-meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
87dc5d59995bf949c35b885bb2eced067d84775bab76692da1202ae7554cb1b8404ca7371c264363e6d55c8978762ed32b446535746061f09e90cfc599adc0a0  rubberband-2.0.2.tar.bz2
"
